import service from "@/utils/request.js"
/**
 * 创建分类
 */
export function bookcreate(data = {}){
    return service.request({
        url: "/api/v1/bookcreate",
        method: "post",
        data
    })
}

/**
 * 书籍列表
 */
export function booklists(data = {}){
    return service.request({
        url: "/api/v1/booklists",
        method: "post",
        data
    })
}

/**
 * 删除书籍
 */
export function bookdelete(data = {}){
    return service.request({
        url: "/api/v1/bookdelete",
        method: "post",
        data
    })
}

/**
 * 上架
 */
export function isShelves(data = {}){
    return service.request({
        url: "/api/v1/isShelves",
        method: "post",
        data
    })
}

/**
 * 下架
 */
export function isOut(data = {}){
    return service.request({
        url: "/api/v1/isOut",
        method: "post",
        data
    })
}

/**
 * 详情
 */
export function bookdetailed(data = {}){
    return service.request({
        url: "/api/v1/bookdetailed",
        method: "post",
        data
    })
}


/**
 * 修改
 */
export function bookupdate(data = {}){
    return service.request({
        url: "/api/v1/bookupdate",
        method: "post",
        data
    })
}